{{#with profile_field_info}}
<form class="name-setting profile-field-form new-style" id="edit-custom-profile-field-form-{{id}}">
    <div class="input-group">
        <label for="name">{{t "Label" }}</label>
        <input type="text" name="name" class="modal_text_input" value="{{ name }}" maxlength="40" />
    </div>
    <div class="input-group hint_change_container">
        <label for="hint">{{t "Hint" }}</label>
        <input type="text" name="hint" class="modal_text_input" value="{{ hint }}" maxlength="80" />
    </div>
    {{#if is_select_field }}
    <div class="input-group">
        <label for="profile_field_choices_edit">{{t "Field choices" }}</label>
        <div class="profile-field-choices" name="profile_field_choices_edit">
            <hr />
            <div class="edit_profile_field_choices_container">
                {{#each choices}}
                    {{> profile_field_choice }}
                {{/each}}
            </div>
        </div>
    </div>
    {{/if}}
    {{#if is_external_account_field}}
    <div class="input-group profile_field_external_accounts_edit">
        <label for="external_acc_field_type">{{t "External account type" }}</label>
        <select name="external_acc_field_type" class="modal_select" disabled>
            {{#each ../realm_default_external_accounts}}
                <option value='{{@key}}'>{{this.text}}</option>
            {{/each}}
            <option value="custom">{{t 'Custom' }}</option>
        </select>
    </div>
    <div class="input-group custom_external_account_detail">
        <label for="url_pattern">{{t "URL pattern" }}</label>
        <input type="url" class="modal_url_input" name="url_pattern" autocomplete="off" maxlength="80" />
    </div>
    {{/if}}
    {{#if valid_to_display_in_summary}}
        <div class="input-group">
            <label class="checkbox edit_profile_field_display_label" for="edit_display_in_profile_summary_{{id}}">
                <input class="edit_display_in_profile_summary" type="checkbox" id="edit_display_in_profile_summary_{{id}}" name="display_in_profile_summary" {{#if display_in_profile_summary}} checked="checked" {{/if}}/>
                <span></span>
                {{t 'Display on user card' }}
            </label>
        </div>
    {{/if}}
</form>
{{/with}}
